package com.irate.provider;

import java.util.ArrayList;
import java.util.List;

import android.support.v4.app.Fragment;

import com.irate.model.RatingCategory;
import com.irate.model.RatingCriteria;
import com.irate.model.User;

public class ContentManager {

	private static ContentManager instance = new ContentManager();
	private List<User> listFriend;
	private User currentUser;
	private Boolean login;
	private int refreshTime;
	private int currentFriendLayoutSelected;
	private String strSearchFriendAddFriend;
	private int numOfFriend;
	private int category_index_selected;
	private RatingCategory rating_category;
	private List<RatingCategory> listRatingCategory;
	private List<RatingCriteria> listRatingCriteria;
	private String filePathRating;
	private String commentContent;
	private int rating_privacy;

	private Fragment frienFragment;

	protected ContentManager() {
		listFriend = new ArrayList<User>();
		isLogin(false);
		setRefreshTime(60000);
		currentFriendLayoutSelected = 0;
		category_index_selected = 0;
		numOfFriend = 0;
		rating_category = null;
		listRatingCategory = new ArrayList<RatingCategory>();
		listRatingCriteria = new ArrayList<RatingCriteria>();
		filePathRating = "";
		setCommentContent("");
		rating_privacy = 0;
	}

	public static ContentManager getInstance() {
		return instance;
	}

	public List<User> getListFriend() {
		return listFriend;
	}

	public void setListFriend(List<User> listFriend) {
		this.listFriend = listFriend;
	}

	public User getCurrentUser() {
		return currentUser;
	}

	public void setCurrentUser(User currentUser) {
		this.currentUser = currentUser;
	}

	public Boolean isLogin() {
		return login;
	}

	public void isLogin(Boolean login) {
		this.login = login;
	}

	public int getRefreshTime() {
		return refreshTime;
	}

	public void setRefreshTime(int refreshTime) {
		this.refreshTime = refreshTime;
	}

	public int getCurrentFriendLayoutSelected() {
		return currentFriendLayoutSelected;
	}

	public void setCurrentFriendLayoutSelected(int currentFriendLayoutSelected) {
		this.currentFriendLayoutSelected = currentFriendLayoutSelected;
	}

	public String getStrSearchFriendAddFriend() {
		return strSearchFriendAddFriend;
	}

	public void setStrSearchFriendAddFriend(String strSearchFriendAddFriend) {
		this.strSearchFriendAddFriend = strSearchFriendAddFriend;
	}

	public int getNumOfFriend() {
		return numOfFriend;
	}

	public void setNumOfFriend(int numOfFriend) {
		this.numOfFriend = numOfFriend;
	}

	public Fragment getFrienFragment() {
		return frienFragment;
	}

	public void setFrienFragment(Fragment frienFragment) {
		this.frienFragment = frienFragment;
	}

	public int getCategory_index_selected() {
		return category_index_selected;
	}

	public void setCategory_index_selected(int category_index_selected) {
		this.category_index_selected = category_index_selected;
	}

	public RatingCategory getRating_category() {
		return rating_category;
	}

	public void setRating_category(RatingCategory rating_category) {
		this.rating_category = rating_category;
	}

	public List<RatingCategory> getListRatingCategory() {
		return listRatingCategory;
	}

	public void setListRatingCategory(List<RatingCategory> listRatingCategory) {
		this.listRatingCategory = listRatingCategory;
	}

	public List<RatingCriteria> getListRatingCriteria() {
		return listRatingCriteria;
	}

	public void setListRatingCriteria(List<RatingCriteria> listRatingCriteria) {
		this.listRatingCriteria = listRatingCriteria;
	}

	public String getFilePathRating() {
		return filePathRating;
	}

	public void setFilePathRating(String filePathRating) {
		this.filePathRating = filePathRating;
	}

	public String getCommentContent() {
		return commentContent;
	}

	public void setCommentContent(String commentContent) {
		this.commentContent = commentContent;
	}

	public int getRating_privacy() {
		return rating_privacy;
	}

	public void setRating_privacy(int rating_privacy) {
		this.rating_privacy = rating_privacy;
	}

}
